import socket

HOST = "172.30.173.156"
PORT = 8000

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
    s.connect((HOST, PORT))

    s.sendall(b"www.baidu.com")
    data = s.recv(1024)

print(f"client recived: {data}")
